package string;

import javax.jws.soap.SOAPBinding;
import java.util.Arrays;

public class SplitDemo2 {
    public static void main(String[] args) {
        String line ="a=b=c=d=e=f===";
        String[] array=line.split("=");
        System.out.println(Arrays.toString(array));

        array =line.split("=",2);
        System.out.println(Arrays.toString(array));
        array= line.split("=",3);
        System.out.println(Arrays.toString(array));

        array =line.split("=",10);
        System.out.println(Arrays.toString(array));

        array=line.split("=",0);
        System.out.println(Arrays.toString(array));

        array =line.split("=",-1);
        System.out.println(Arrays.toString(array));
    }
}
